<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../lib/react.development.js"></script>
    <script src="../lib/react-dom.development.js"></script>
    <script src="../lib/babel.min.js"></script>
</head>
<div id="root">

</div>

<body>
    <script type="text/babel">
        const root = ReactDOM.createRoot(document.getElementById('root'));
        // 单位时px 可以省略不写
        // style的值 必须是一个对象
        // 如果是复合属性 需要用小驼峰命名法
        root.render((
            <div>
                <h3>行内样式处理</h3>
                <div style={{color: 'red',border: '1px solid blue',backgroundColor:'pink',width:200,
                height: 500, fontSize: '20px'}}>
                    红色黄字,蓝色边框,粉色背景
                </div>

            </div>
        ));
    </script>
</body>
</html>